package com.ftj.bills.sys.controller;

import com.ftj.bills.common.DataGridView;
import com.ftj.bills.sys.service.BilltypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/billtype")
public class BilltypeController {

    @Autowired
    private BilltypeService billtypeService;

    @RequestMapping("/loadAllBillType")
    @ResponseBody
    public DataGridView loadAllBillType(){
        return new DataGridView(0L,billtypeService.list());
    }
}
